/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package service.impl;

import dao.ChucNangDAO;
import dao.impl.ChucNangDAOImpl;
import java.util.List;
import pojo.ChucNang;
import service.ChucNangService;

/**
 *
 * @author pvhuy
 */
public class ChucNangServiceImpl implements ChucNangService {

    private ChucNangDAO chucNangDAO = new ChucNangDAOImpl();

    @Override
    public void saveChucNang(ChucNang chucNang) {
        chucNangDAO.saveChucNang(chucNang);
    }

    @Override
    public List<ChucNang> listChucNang() {
        return chucNangDAO.listChucNang();
    }

    /**
     * @return the chucNangDAO
     */
    public ChucNangDAO getChucNangDAO() {
        return chucNangDAO;
    }

    /**
     * @param chucNangDAO the chucNangDAO to set
     */
    public void setChucNangDAO(ChucNangDAO chucNangDAO) {
        this.chucNangDAO = chucNangDAO;
    }

}
